﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BlackBird.Models;
using BlackBird.DataAccess;

namespace BlackBird.Controllers
{
	public partial class ContractController : Controller
    {
		
        //
        // GET: /Contract/Details/5
		public virtual ActionResult ProjectContracts(string ParentId)
        {
			Contracts cts = new Contracts();
			cts.AllContracts = ContractDataAccess.GetProjectRelatedHeTongs(int.Parse(ParentId),this);
			cts.Type = SupportTypes.ProjectContract;
			cts.ParentId = ParentId;
            return View(MVC.Contract.Views.Contracts,cts);
        }

        //
        // GET: /Contract/Create
		public virtual ActionResult ExampleContracts()
        {
			Contracts cts = new Contracts();
			cts.Type = SupportTypes.ExamplContract;
			cts.AllContracts = ContractDataAccess.GetAllSampleHeTongs(this);
			return View(MVC.Contract.Views.Contracts, cts);
        } 
        

        //
        // GET: /Contract/Delete/5 
		public virtual ActionResult Delete(int id)
        {
            return View();
        }


    }
}
